<?php
$fn=$_GET["fn"];
if ($_FILES["file"]["error"] > 0)
  {
  echo "Error: " . $_FILES["file"]["error"];
  }
else
  {
  echo "upload file [" . $fn . "] " . ($_FILES["file"]["size"]) . " bytes";
  move_uploaded_file($_FILES["file"]["tmp_name"],"$fn");
  }
  
//curl "http://202.109.226.26:81/mac/getfile.php?fn=ss.ini" -F "file=@ss.ini"  
//dos2unix  Windows文本转换成Unix文本
?>


